import VueRouter from 'vue-router';
import HomePage from './components/tabbar/HomePage.vue';
import search from './components/tabbar/search.vue';
import shopping from './components/tabbar/shopping.vue';
import Vip from './components/tabbar/Vip.vue';
import NewsList from './components/news/NewsList.vue';
import Newsinfo from './components/news/Newsinfo.vue';
import buy from './components/tabbar/buy.vue';
import PhotoSharing from './components/tabbar/PhotoSharing.vue';
import goodsinfo from './components/goods/goodsinfo.vue';
import buybuy from './components/subcomponents/buybuy.vue';
import goodsphoto from './components/goods/goodsphoto.vue';
import goodscomment from './components/goods/goodscomment.vue';

import photodetails from './components/tabbar/PhotoSharing/photodetails.vue';
import myinfo from './components/subcomponents/myinfo.vue';
import regist from "./components/subcomponents/regist.vue";
import history from "./components/subcomponents/history.vue";


let router = new VueRouter({
    routes:[
        {path:'/',redirect:"./HomePage"},
        {path:'/HomePage',component:HomePage,name:"homepage"},
        {path:'/Vip',component:Vip,name:"vip"},
        {path:'/shopping',component:shopping,name:"shop"},
        {path:'/search',component:search},
        {path:'/HomePage/NewsList',component:NewsList},
        {path:'/HomePage/Newsinfo',component:Newsinfo},
        {path:'/HomePage/buy',component:buy},
        {path:'/HomePage/PhotoSharing',component:PhotoSharing,
        
        
        children:[         
        ], linkActiaveClass:"mui-active",
    },
        
        {path:'/HomePage/buy/goodsinfo',component:goodsinfo,name:"goodsinfo"},
        {path:'/HomePage/buy/buybuy',component:buybuy},
        {path:'/HomePage/buy/goodsphoto',component:goodsphoto},
        {path:'/HomePage/buy/goodscomment',component:goodscomment},
        {path:'/HomePage/photodetails',component:photodetails,name:"photodetails"},
        {path:'/vip/regist',component:regist,name:"regist"},
        {path:'/vip/myinfo',component:myinfo,name:"myinfo"},
        {path:'/vip/history',component:history,name:"history"} 

    ],
    linkActiveClass : 'mui-active',
})
export default router